package com.example.share.mapper;

import com.example.share.pojo.Category;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yjw
 * @since 2022-05-17
 */
public interface CategoryMapper extends BaseMapper<Category>{
    // TODO: 2022/5/17 查询所有物品种类 
    List<Category> findCateGory();

    // TODO: 2022/5/17  通过id查询category
    Integer findCateGory(String categoryId);

    // TODO: 2022/5/17 添加类别 
    Boolean addCateGory(Category category);

    // TODO: 2022/5/17 删除种类通过id
    Boolean deleteCateGory(String categoryId);

    // TODO: 2022/5/17 更新物品种类
    Category updateCateGory(Category category);
}
